/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户产品Entity
 * @author 罗天文
 * @version 2018-08-30
 */
public class HkUserProductImg extends DataEntity<HkUserProductImg> {
	
	private static final long serialVersionUID = 1L;
	private HkUserProduct product;		// 产品id 父类
	private String imgSrc;		// 图片
	private String rank;		// 序号
	
	public HkUserProductImg() {
		super();
	}

	public HkUserProductImg(String id){
		super(id);
	}

	public HkUserProductImg(HkUserProduct product){
		this.product = product;
	}

	@Length(min=0, max=32, message="产品id长度必须介于 0 和 32 之间")
	public HkUserProduct getProduct() {
		return product;
	}

	public void setProduct(HkUserProduct product) {
		this.product = product;
	}
	
	@Length(min=0, max=200, message="图片长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
	@Length(min=0, max=11, message="序号长度必须介于 0 和 11 之间")
	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}
	
}